package com.news.news.modle;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.Date;

@Data
@Component
public class User {
    //
    private Integer id;
    private String account;
    private String password;
    private String name;
    private  String  logo;
    private String gender;

    private String yzm;
    private String userToken;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date birthday;


    private String phone;
    private String address;
   private   Integer state;
    private Integer pageNum=1;//数量
    private Integer pageSize=2;//页长
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date regTime;
}
